<div class="content-center">
					<a class="logo" href="">
					    <div class="logo-img"></div>
					    <span class="logo-name">黑鲨商城</span>
					</a>
		            
		            
					<ul class="menu-list-col">
		                    <li class="active"><a href="#" class="animate-common animate-duration-ms">商城</a></li>
		                    <li><a href="#" target="_blank" class="animate-common animate-duration-ms">以旧换新</a></li>
		                    <li><a href="#" target="_blank" class="animate-common animate-duration-ms">服务</a></li>
		                    <li><a href="#" target="_blank" class="animate-common animate-duration-ms">社区</a></li>
		                    
		             </ul>
		           
		            
		            <div class="userCenter-search">
		                <input type="text" id="search">
		                <img src="https://shop-1256119282.file.myqcloud.com/blackshark/pc-source/resource/img/header/search.png" alt="" id="searchBtn">
		            </div>
					
					<div class="userCenter-list-col">
					    <ul id="un-login">
					        <li>
					            <a class="animate-common animate-duration-ms icon-user" href="/html/logoin.html"><i class="icon icon-user"></i></a>
					        </li>
							
					        <li>
					            <a class="animate-common animate-duration-ms icon-cart" href="cart.html"><i class="icon icon-cart"></i></a>
					        </li>
					    </ul>
						
						<ul id="is-login" class="hide">
						    <li>
						        <a class="" href=""><i>欢迎您，<b></b></i></a>
						    </li>
							
						    <li>
						        <a class="" href="list.html"><i id="logout">退出登录</i></a>
						    </li>
						</ul>
					</div>
		        </div>

<script type="text/javascript">
		var unLogin = document.querySelector('#un-login')
		var isLogin = document.querySelector('#is-login')
		var nameWrap = document.querySelector('#is-login li a b')
		var logout = document.querySelector('#logout')
		
		var username = utils.getCookie('name')
		if(username){
			unLogin.className = 'hide'
			isLogin.className = ''
			nameWrap.innerHTML = username
		}
		
		logout.addEventListener('click',function(){
			if(confirm('确定要退出吗？')){
				utils.setCookie('name','',{expires:-1,path:'/'})
				unLogin.className = ''
				isLogin.className = 'hide'
			}
		})
		
		
</script>